package com.myh.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.myh.common.utils.PageUtils;
import com.myh.gulimall.product.entity.AttrGroupEntity;
import com.myh.gulimall.product.vo.AttrGroupRelationVo;
import com.myh.gulimall.product.vo.AttrGroupWithAttrVo;
import com.myh.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author myh
 * @email 2722407149@qq.com
 * @date 2024-01-01 11:42:39
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    String getNameByAttrGroupId(Long attrGroupId);

    List<AttrVo> getAttrgroupRelAttrs(Long attrgroupId);

    Long getCatelogIdByAttrGroupId(Long attrgroupId);

    void addRelation(List<AttrGroupRelationVo> vos);

    List<AttrGroupWithAttrVo> getAllAttrGroupWithAttr(Long catelogId);
}

